<?php global $theme_options, $newspaper; ?>
<?php get_header(); ?>
	
	<div id="singleContent">
		<div id="archiveEntries">
			<?php 
				$myqueryname = $wp_query;
				$wp_query = null;
				$wp_query = new WP_Query();
				$wp_query->query('cat='.$theme_options["videoCatID"].'&showposts='.$theme_options["videoPostCountArc"].'&paged='.$paged);
				if (have_posts()) : while (have_posts()) : the_post(); 
			?>	
			<div class="archivePost">
				<h2 class="archiveTitles"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> &raquo;</h2>
				<div class="video">	
					<object type="application/x-shockwave-flash" style="width:501px; height:250px;" data="<?php echo get_post_meta($post->ID, 'video', true); ?>">
					<param name="movie" value="<?php echo get_post_meta($post->ID, 'video', true); ?>" /></object> 
				</div>
				<div class="videoInfo">
					<?php echo $newspaper["postedOn"]; ?> <?php the_time('F j, Y'); ?> | <a href="<?php the_permalink() ?>" rel="bookmark"><?php echo $newspaper["permalinkV"]; ?> &raquo;</a>
				</div>
			</div>
			<?php endwhile; else : endif; ?>
			<div class="clear"></div>
			<div class="navigation">
				<div class="previous"><?php posts_nav_link('','','&laquo; '.$newspaper["previousV"]) ?></div>
				<div class="next"><?php posts_nav_link('',''.$newspaper["nextV"].' &raquo;','') ?></div>
				<div class="clear"></div>
			</div>		
		</div>
		<div id="singlePostSidebarLeft">
			<?php include (TEMPLATEPATH . '/innerSidebarLeft.php'); ?>
		</div>
		<div class="clear"></div>
	</div>
	
	
	<div id="singlePostSidebarRight">
		<?php include (TEMPLATEPATH . '/innerSidebarRight.php'); ?>

	</div>
	<div class="clear"></div>
	
	
<?php get_footer(); ?>

</div><!-- enf od wrapper -->

</body>
</html>